/*
* Entourage
* Copyright 2011 INF532@Galatasaray University & Vincent Labatut 
* 
* This file is part of Entourage.
* 
* Entourage is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* 
* Entourage is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* 
* You should have received a copy of the GNU General Public License
* along with Entourage. If not, see <http://www.gnu.org/licenses/>.
* 
*/


package com.appspot.entourage.databasemanager;

import javax.jdo.annotations.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * This class is used save the Fullname and guid of a person.
 * @author Zakaria BOUHAMIDI <zakariabouhamidi@hotmail.com>
 * @version 1
 */


@Entity
@Table(name = "CACHE")
public class Cache {
	@Column(name = "FULLNAME", length = 100)
	private String fullname;
	
	@Id
	@Column(name = "GUID")
	private String guid;
	
	
	public Cache(String fullname, String guid)
	{
		this.fullname = fullname;
		this.guid = guid;
		
	}
	
	/**
	 * Get method for full name
	 * @return full name of the person
	 * @author Zakaria BOUHAMIDI <zakariabouhamidi@hotmail.com>
	 */
	public String getFullName()
	{
		return fullname;
	}
	
	/**
	 * Get method for freebase id
	 * @return the freebase id of the person
	 * @author Zakaria BOUHAMIDI <zakariabouhamidi@hotmail.com>
	 */
	public String getGuid()
	{
		return guid;		
	}
	
	
	/**
	 * set method for FullName
	 * @param FN link label's fullname value
	 * @author Zakaria BOUHAMIDI <zakariabouhamidi@hotmail.com>
	 */
	
	  public void setFullName(String  FN)
	    {
		  fullname=FN;
	    }
	  
	  

		/**
		 * Set method for text
		 * @param g link label's guid value
		 * @author Zakaria BOUHAMIDI <zakariabouhamidi@hotmail.com>
		 */
	  public void setguid(String  g)
	    {
		  guid=g;
	    }
	  
	  
	  
	  
	  
	  
	  
	  
  

	

}
